<?php  
    $brand = new BWMessage($messageID);
    $messageList = $brand->getMessageManager()->getMessageList();
?>
<div style="font-family: 微软雅黑; font-size: 14px; line-height: 28px">
    <div style="text-align: center;margin-bottom: 4px;padding:0 1px;">
        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/mobile/jiadiancuxiao.png" style="width:100%; height:40px;"/>
    </div>
    
     <?php
        foreach ($messageList as $message) {
            $messagePrice = $message->getMediaManager()->getMedia('price')->content;
            $messageImage = $message->getMediaManager()->getMedia('image')->content;
            if(strlen($messageImage)>0){
                $goodPic=$messageImage;
            }
            else {           
                $goodPic='#';
            }
      ?>
    <div style="border-bottom: 1px solid #dedede; padding: 0 8px; margin: 0px; width: 100%; height:180px;">
        <div style="padding:6px 0; color:black;">商品名称： <?php echo $message->name; ?></div>
        <div style="width: 120px; height: 130px; float: left; overflow:hidden;">
            <img src="<?php echo Yii::app()->request->baseUrl.$goodPic; ?>" style="width:100%; height:100%;"/>
        </div>
        <div style="padding-left: 12px; float: left;">
            <div style="color:black;">抢购价：<font style="color: red;">￥<?php echo $messagePrice; ?></font></div>
            <div style="color:black;">原价：<s style="color: gray">￥1895.00</s></div>
            <div style="color:black;">剩余时间：2小时01分49秒<font></font></div>
            <div style="color:black; float: left; margin-top: 10px;"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/mobile/button.png" style=""/></div>
            <div style="color:gray; float: left; margin-left: 15px;  margin-top: 8px;">剩余<font style="color: red;">100</font>件</div>
            <div style="color: gray; float: left; margin-left: 15px;margin-top: 10px;"><?php echo $control->getLink('商品详情',array('mediaID'=>$message->id,'GoodsName'=>$message->name,'GoodsDsc'=>$message->description)); ?></div>
        </div>
    </div>
        <?php }?>
   
</div>

